package com.atguigu.spzx.manager.mapper.product;

import com.atguigu.spzx.model.entity.product.Category;
import com.atguigu.spzx.model.excel.product.CategoryExcelData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {
    List<Category> findCatesByPid(Long pid);

    int countChildrenByPid(Long pid);

    List<Category> findAllCates();

    void batchSave(@Param("list")List<CategoryExcelData> list);

    boolean exist(@Param("data")CategoryExcelData data);
}
